import VueRouter from 'vue-router'
import homeContainer from './components/tabber/homeContainer.vue'
import memberContainer from './components/tabber/memberContainer.vue'
import shopcarContainer from './components/tabber/shopcarContainer.vue'
import searchContainer from './components/tabber/searchContainer.vue'
import newsList from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'
var router=new VueRouter({
    routes:[//配置路由规则
        {path:'/',redirect:'/home'},
        {path:'/home',component:homeContainer},
        {path:'/member',component:memberContainer},
        {path:'/shopcar',component:shopcarContainer},
        {path:'/search',component:searchContainer},
        {path:'/home/newslist',component:newsList},
        {path:'/home/newsinfo/:id',component:newsInfo}
    ],
    linkActiveClass:'mui-active'//覆盖默认路由高亮的类，默认类叫做router-link-active
})
export default router